<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Price My House: QmlApplicationViewerPrivate Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="PriceMyHouse.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Price My House&#160;<span id="projectnumber">Alpha 1</span></div>
   <div id="projectbrief">Application documentation, Nokia mobile version</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00003.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pri-static-methods">Static Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">QmlApplicationViewerPrivate Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="QmlApplicationViewerPrivate" -->
<p><a href="a00009.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pri-static-methods"></a>
Static Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00003.html#ab7e84df22ca70fddfb6cea36d0a2dc97">adjustPath</a> (const QString &amp;path)</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00003.html#a1f47874ad0a78ab9c06b78662b31225f">mainQmlFile</a></td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00003.html#a7f82e38d9994cdd669ba61d3c5a76ccf">QmlApplicationViewer</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="a00006_source.html#l00047">47</a> of file <a class="el" href="a00006_source.html">qmlapplicationviewer.cpp</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ab7e84df22ca70fddfb6cea36d0a2dc97"></a><!-- doxytag: member="QmlApplicationViewerPrivate::adjustPath" ref="ab7e84df22ca70fddfb6cea36d0a2dc97" args="(const QString &amp;path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString QmlApplicationViewerPrivate::adjustPath </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td><code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="a00006_source.html#l00054">54</a> of file <a class="el" href="a00006_source.html">qmlapplicationviewer.cpp</a>.</p>

<p>Referenced by <a class="el" href="a00006_source.html#l00098">QmlApplicationViewer::addImportPath()</a>, and <a class="el" href="a00006_source.html#l00092">QmlApplicationViewer::setMainQmlFile()</a>.</p>
<div class="fragment"><pre class="fragment">{
<span class="preprocessor">#ifdef Q_OS_UNIX</span>
<span class="preprocessor"></span><span class="preprocessor">#ifdef Q_OS_MAC</span>
<span class="preprocessor"></span>    <span class="keywordflow">if</span> (!QDir::isAbsolutePath(path))
        <span class="keywordflow">return</span> QCoreApplication::applicationDirPath()
                + QLatin1String(<span class="stringliteral">&quot;/../Resources/&quot;</span>) + path;
<span class="preprocessor">#else</span>
<span class="preprocessor"></span>    <span class="keyword">const</span> QString pathInShareDir = QCoreApplication::applicationDirPath()
        + QLatin1String(<span class="stringliteral">&quot;/../share/&quot;</span>)
        + QFileInfo(QCoreApplication::applicationFilePath()).fileName()
        + QLatin1Char(<span class="charliteral">&#39;/&#39;</span>) + path;
    <span class="keywordflow">if</span> (QFileInfo(pathInShareDir).exists())
        <span class="keywordflow">return</span> pathInShareDir;
<span class="preprocessor">#endif</span>
<span class="preprocessor"></span><span class="preprocessor">#endif</span>
<span class="preprocessor"></span>    <span class="keywordflow">return</span> path;
}
</pre></div>
</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a7f82e38d9994cdd669ba61d3c5a76ccf"></a><!-- doxytag: member="QmlApplicationViewerPrivate::QmlApplicationViewer" ref="a7f82e38d9994cdd669ba61d3c5a76ccf" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="a00002.html">QmlApplicationViewer</a><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="a00006_source.html#l00050">50</a> of file <a class="el" href="a00006_source.html">qmlapplicationviewer.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a1f47874ad0a78ab9c06b78662b31225f"></a><!-- doxytag: member="QmlApplicationViewerPrivate::mainQmlFile" ref="a1f47874ad0a78ab9c06b78662b31225f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString <a class="el" href="a00003.html#a1f47874ad0a78ab9c06b78662b31225f">QmlApplicationViewerPrivate::mainQmlFile</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="a00006_source.html#l00049">49</a> of file <a class="el" href="a00006_source.html">qmlapplicationviewer.cpp</a>.</p>

<p>Referenced by <a class="el" href="a00006_source.html#l00092">QmlApplicationViewer::setMainQmlFile()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="a00006_source.html">qmlapplicationviewer.cpp</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="a00003.html">QmlApplicationViewerPrivate</a>      </li>
      <li class="footer">Generated on Sun May 1 2011 15:04:04 for Price My House by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>

</body>
</html>
